/*
 * @Author: zsc
 * @Date: 2022-06-13 21:56:52
 * @LastEditors: zsc
 * @LastEditTime: 2022-07-26 00:43:43
 * @Description:
 */
/**
 * ======================================
 *   预警信息
 * author: SKY-D
 * file: warning.js
 * date: 2022/6/12 13:10
 * ======================================
 */
import Layout from '@/layout'

const pre = 'warning'
const router = {
  path: '/' + pre,
  component: Layout,
  name: pre,
  meta: {
    title: '异常预警',
    icon: 'el-icon-ly-yujing',
    permissions: ['ABNORMAL']
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/warning/list/index'), // Parent router-view
      name: pre + 'personList',
      meta: {
        title: '异常预警',
        permissions: ['ABNORMAL']
      }
    },
    {
      path: 'list',
      component: () => import('@/views/whereabouts/list'), // Parent router-view
      name: pre + 'list',
      meta: {
        title: '行踪管理',
        permissions: ['TRACK']
      }
    },
    {
      path: 'focusList',
      component: () => import('@/views/warning/list/focusList'), // Parent router-view
      name: pre + 'focusList',
      meta: {
        title: '重点关注人员',
        permissions: ['ABNORMAL']
      }
    }

  ]
}

export default router
